<? include("database.php");
    $business_id = 1;
	if(isset($_REQUEST['id']))
	{
		$setup_id = $_REQUEST['id'];
	}
	if(isset($_REQUEST['Submit']))
	{
		$monday = $_REQUEST['monday'];
		$mondayfrom = $_REQUEST['mondayfrom'];
		$mondayto = $_REQUEST['mondayto'];	
		$tuesday = $_REQUEST['tuesday'];
		$tuesdayfrom = $_REQUEST['tuesdayfrom'];
		$tuesdayto = $_REQUEST['tuesdayto'];		
		$wednesday = $_REQUEST['wednesday'];
		$wednesdayfrom = $_REQUEST['wednesdayfrom'];
		$wednesdayto = $_REQUEST['wednesdayto'];		
		$thursday = $_REQUEST['thursday'];
		$thursdayfrom = $_REQUEST['thursdayfrom'];
		$thursdayto = $_REQUEST['thursdayto'];		
		$friday = $_REQUEST['friday'];
		$fridayfrom = $_REQUEST['fridayfrom'];
		$fridayto = $_REQUEST['fridayto'];		
		$sat = $_REQUEST['sat'];
		$satfrom = $_REQUEST['satfrom'];
		$satto = $_REQUEST['satto'];		
		$sunday = $_REQUEST['sun'];
		$sundayfrom = $_REQUEST['sunfrom'];
		$sundayto = $_REQUEST['sunto'];
				
		mysql_query("insert into hours_management(monday, mondayfrom, mondayto, tuesday, tuesdayfrom, tuesdayto, wednesday, wednesdayfrom, wednesdayto, thursday, thursdayfrom, thursdayto, friday, fridayfrom, fridayto, sat, satfrom, satto, sunday, sundayfrom, sundayto, business_id) values('".$monday."', '".$mondayfrom."', '".$mondayto."', '".$tuesday."', '".$tuesdayfrom."', '".$tuesdayto."', '".$wednesday."', '".$wednesdayfrom."', '".$wednesdayto."', '".$thursday."', '".$thursdayfrom."', '".$thursdayto."', '".$friday."', '".$fridayfrom."', '".$fridayto."', '".$sat."', '".$satfrom."', '".$satto."', '".$sunday."', '".$sundayfrom."', '".$sundayto."', '".$business_id."')");	
		
		header("Location: step4.php?id=$setup_id");
		
	}
?>